package com.pizza.model;

import java.io.Serializable;

/**
 * Class Ingredient, entite du modele.
 *
 */
public class Ingredient implements Serializable {

	private int id;

	private String nom;

	private String details;

	private float prix;

	public Ingredient(int id, String nom, String details, float prix) {
		super();
		this.id = id;
		this.nom = nom;
		this.details = details;
		this.prix = prix;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public float getPrix() {
		return prix;
	}

	public void setPrix(float prix) {
		this.prix = prix;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if ((obj == null) || (obj.getClass() != this.getClass()))
			return false;
		Ingredient i = (Ingredient) obj;
		return (id == i.id);
	}
}
